package com.group.util;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Zhangyang Hu
 */
public class CoinTransferUtil {

    private static final Logger logger = LoggerFactory.getLogger(CoinTransferUtil.class);

    public static final List<CoinRandomDecimal> randomList = new ArrayList<>(100);

    public static boolean firstRun = true;

    static {

        logger.info("Initialize CoinTransferUtil...");

        for(int i = 0; i < 10; ++i) {

            for(int k = 1; k < 10; ++k) {

                CoinRandomDecimal temp = new CoinRandomDecimal();
                temp.randomDecimal = "0." + i + k;

                randomList.add(temp);
            }
        }

        Collections.sort(randomList);
    }

}
